package com.sskj.finance.bean;

import com.sskj.lib.util.CoinUtil;
import com.sskj.lib.util.TimeFormatUtil;

import java.util.Date;

public class HomeLendGetTransrecord {

 /**
  * tran_id : 1
  * pname : ETH
  * num : 5.0000
  * interest_rate : 0.150000
  * addtime : 1557575036
  * endtime : 1560182400
  * selltime : 1557575630
  * status : 2
  * is_auto : 0
  * days : 30
  * Stringerest : 0.0000
  * commision : 0.0000
  * fine : 0.0500
  * dayth : 0
  * income : -0.05
  */

 private String tran_id;
 private String pname;
 private String num;
 private String interest_rate;
 private String addtime;
 private String endtime;
 private String selltime;
 private String status;
 private String is_auto;
 private String days;
 private String Stringerest;
 private String commision;
 private String fine;
 private String dayth;
 private String income;
 private String fine_rate;

 public String getStringerest() {
  return Stringerest;
 }

 public void setStringerest(String stringerest) {
  Stringerest = stringerest;
 }

 public String getFine_rate() {
  return fine_rate;
 }

 public void setFine_rate(String fine_rate) {
  this.fine_rate = fine_rate;
 }

 public String getTran_id() {
  return tran_id;
 }

 public void setTran_id(String tran_id) {
  this.tran_id = tran_id;
 }

 public String getPname() {
  return pname;
 }

 public void setPname(String pname) {
  this.pname = pname;
 }

 public String getNum() {
  return CoinUtil.keepCoinNumMax(pname,num);
 }

 public void setNum(String num) {
  this.num = num;
 }

 public String getInterest_rate() {
  return interest_rate;
 }

 public void setInterest_rate(String Stringerest_rate) {
  this.interest_rate = Stringerest_rate;
 }

 public String getAddtime() {
  return TimeFormatUtil.SF_FORMAT_E.format(new Date(Long.valueOf(addtime) * 1000));
 }

 public void setAddtime(String addtime) {
  this.addtime = addtime;
 }

 public String getEndtime() {
  return endtime;
 }

 public void setEndtime(String endtime) {
  this.endtime = endtime;
 }

 public String getSelltime() {
  return selltime;
 }

 public void setSelltime(String selltime) {
  this.selltime = selltime;
 }

 public String getStatus() {
  return status;
 }

 public void setStatus(String status) {
  this.status = status;
 }

 public String getIs_auto() {
  return is_auto;
 }

 public void setIs_auto(String is_auto) {
  this.is_auto = is_auto;
 }

 public String getDays() {
  return days;
 }

 public void setDays(String days) {
  this.days = days;
 }

 public String getInterest() {
  return Stringerest;
 }

 public void setInterest(String Stringerest) {
  this.Stringerest = Stringerest;
 }

 public String getCommision() {
  return commision;
 }

 public void setCommision(String commision) {
  this.commision = commision;
 }

 public String getFine() {
  return fine;
 }

 public void setFine(String fine) {
  this.fine = fine;
 }

 public String getDayth() {
  return dayth;
 }

 public void setDayth(String dayth) {
  this.dayth = dayth;
 }

 public String getIncome() {
  return CoinUtil.keepCoinNumMax(pname,income);
 }

 public void setIncome(String income) {
  this.income = income;
 }
}
